import { createRouter, createWebHistory } from 'vue-router'
import {userStore} from '@/stores/counter.js'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
  {
  path:'/',
  name:'welcome',
  component:()=>import('@/views/WelcomeVue.vue'),
  children:[
  {
      path:'',
      name:'welcome-login',
      component:()=>import('@/components/welcome/LoginPage.vue')
    }
  ]
  },{
  path:'/index',
    name:'index',
    component:()=>import('@/views/indexVue.vue')
  },{
               path:'/score/:id',
               name:'scores',
               component:()=>import('@/views/ScoreVue.vue')
             },
             {
                            path:'/score/:votepart',
                            name:'scorel',
                            component:()=>import('@/views/ScoreVueL.vue')
                          }
  ]
})

export default router
